package helpers;
import java.util.ArrayList;

import android.content.Context;

import customWidgets.Hero;

public class StaticHelper {

	public static Hero[] heroMaker(ArrayList<String> hero, ArrayList<String> image, Context context){
		
		Hero[] heroList = new Hero[hero.size()];
		int index = 0;

		for (String s: image) {

			String mDrawableName = s;
			String textName = hero.get(image.indexOf(s));
			int resID = context.getResources().getIdentifier(mDrawableName , "drawable", context.getPackageName());
			Hero h = new Hero(resID,textName);
			heroList[index] = h;
			index++;
		}
		return heroList;
	}
	
	
	
}
